//
//  App.h
//  IOSFrameWork
//
//  Created by 严贵敏 on 15/6/25.
//  Copyright (c) 2015年 严贵敏. All rights reserved.
//
/**
 *  创建常用控件,避免重复家劳动
 */
#import <Foundation/Foundation.h>
typedef void (^btnAction)();
@interface AppUI : NSObject
#pragma mark- UIView
/**
 *  普通UIView,带颜色
 *
 */
+(UIView *)createViewWithSupeView:(UIView *)supeView
       andWithBackgroundColor:(UIColor *)color;
+(UIView *)cellselectView;
/**
 *  cell 线条
 *
 */
+(UIView *)createCellLineViewWithSupeView:(UIView *)supeView;
#pragma mark- UIButton
/**
 *  基础 btn
 */
+(UIButton *)createButtonWithBtnAction:(btnAction)Block;
/**
 * UIButton 文字
 *
 */
+(UIButton *)createButtonWithText:(NSString *)text
                     andWithTextColor:(UIColor *)color
                     andWithFontfloat:(float)fontfloat
                     andWithBtnAction:(btnAction)Block;
/**
 * UIButton 背景色
 *
 */
+(UIButton *)createButtonWithSupeView:(UIView *)supeView
         andWithBackgroundColor:(UIColor *)color
            andWithCornerRadius:(CGFloat)radius
               andWithBtnAction:(btnAction)Block;
/**
 * UIButton 图片
 *
 */
+(UIButton *)createButtonWithSupeView:(UIView *)supeView
             andWithNormalImage:(UIImage *)normalImage
             andWithSelectImage:(UIImage *)selectImage
               andWithBtnAction:(btnAction)Block;

#pragma mark- UIImageView
/**
 *  UIImageView
 */
+(UIImageView *)createImageViewWithSupeView:(UIView *)supeView;
/**
 *  UIImageView 带Url
 */
+(UIImageView *)createImageViewWithSupeView:(UIView *)supeView
                              andWithUrl:(NSString *)url;
/**
 *  UIImageView 带图片
 */
+(UIImageView *)createImageViewWithSupeView:(UIView *)supeView
                            andWithImage:(UIImage *)image;
#pragma mark- UILabel
/**
 *  UILabel 带字体大小,颜色
 */
+(UILabel *)createLabelWithSupeView:(UIView *)supeView
                andWiFontfloat:(float)fontfloat
              andWithTextColor:(UIColor *)color;
/**
 *  UILabel 常用CellTitle
 */
+(UILabel *)createCellTitleLabelWithSupeView:(UIView *)supeView;
/**
 *  UILabel 常用CellContent
 */
+(UILabel *)createCellContentLabelWithSupeView:(UIView *)supeView;
/**
 *  UILabel 常用钱
 */
+(UILabel *)createPayNowLabelWithSupeView:(UIView *)supeView;

#pragma mark- navigationItem

+(void)setBack:(UINavigationItem *)navigationItem;
/**
 *  设置navigationItem单个按钮  常用文字取消
 */
+(void)initNavigationItem1:(UINavigationItem *)navigationItem andWithText:(NSString *)text  andIsRight:(BOOL)IsRight  withBlock:(btnAction)ActionBlock;

+(void)initNavigationItem:(UINavigationItem *)navigationItem andWithText:(NSString *)text andTextColor:(UIColor *)color andIsRight:(BOOL)IsRight  withBlock:(btnAction)ActionBlock;

+(NSString *)GetImageWithAndHeightWithUrl:(NSString *)url andWidth:(float)width andWithHeigh:(float)height;
@end
